﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataObject.Database;
using DataObject.Core;

namespace DataObject.DataAccess
{
    public class ConfigurationDAO : DataBaseProcessBase<Configuration, OBSDataContext>
    {
        #region CreateInstant
        public static ConfigurationDAO CreateInstant()
        {
            return new ConfigurationDAO();
        }
        #endregion

        public Configuration Get()
        {
            using (OBSDataContext db = new OBSDataContext(base.connectionString))
            {
                return db.Configurations.Single();
            }
        }
    }
}
